extends Node

var cardDict={}

func _ready():
	cardDict[0]={No=0,
	Name="打击",
	cost=1,
	description="造成6点伤害",
	useFunc=funcref(CardAction,"blow"),
	useCardFunc=null,
	useType=0, 
	image="打击",
	
	}
	
	cardDict[1]={No=1,
	Name="连斩",
	cost=1,
	description="造成4点伤害两次",
	useFunc=funcref(CardAction,"doubleAttack"),
	userCardFunc=null,
	useType=0, 
	image="乱舞",

	}
	cardDict[2]={No=2,
	Name="火球",
	cost=2,
	description="造成15点伤害",
	useFunc=funcref(CardAction,"fire"),
	userCardFunc=null,
	useType=0, 
	image="火球",
	
	}
	cardDict[3]={No=3,
	Name="快速攻击",
	cost=0,
	description="造成3点伤害，抽一张牌",
	useFunc=funcref(CardAction,"quickAttack"),
	userCardFunc=null,
	useType=0, 
	image="快速攻击",
	}
	cardDict[4]={No=4,
	Name="能量吸收",
	cost=1,
	description="造成5点伤害，获得2点能量，丢弃一张手牌",
	useFunc=funcref(CardAction,"absorb"),
	userCardFunc=null,
	useType=0, 
	image="能量吸收",
	}
	cardDict[5]={No=5,
	Name="旋风斩",
	cost=2,
	description="对所有敌人造成10点伤害",
	useFunc=funcref(CardAction,"windSword"),
	userCardFunc=null,
	useType=3,#不指向 
	image="旋风斩",
	}
	cardDict[6]={No=6,
	Name="保护",
	cost=1,
	description="使一个友方单位获得8点护甲",
	useFunc=funcref(CardAction,"protect"),
	userCardFunc=null,
	useType=1,#指向友军 
	image="盾牌",
	}

	cardDict[7]={No=7,
	Name="壁垒",
	cost=2,
	description="使所有友方单位获得10点护甲",
	useFunc=funcref(CardAction,"barrier"),
	userCardFunc=null,
	useType=3,#不指向 
	image="盾牌",
	}
func getData(No):
	return cardDict[No]